crypto/tls.Conn.config (field)
159 uses
crypto/tls (current package)
conn.go#L44: config *Config // configuration passed to constructor
conn.go#L896: if c.config.DynamicRecordSizingDisabled || typ != recordTypeApplicationData {
conn.go#L1025: outBuf, err = c.out.encrypt(outBuf, data[:m], c.config.rand())
conn.go#L1273: switch c.config.Renegotiation {
conn.go#L1643: if c.config.Renegotiation != RenegotiateNever {
handshake_client.go#L45: config := c.config
handshake_client.go#L198: if c.config.EncryptedClientHelloConfigList != nil {
handshake_client.go#L199: if c.config.MinVersion != 0 && c.config.MinVersion < VersionTLS13 {
handshake_client.go#L202: if c.config.MaxVersion != 0 && c.config.MaxVersion <= VersionTLS12 {
handshake_client.go#L205: echConfigs, err := parseECHConfigList(c.config.EncryptedClientHelloConfigList)
handshake_client.go#L254: if c.config == nil {
handshake_client.go#L255: c.config = defaultConfig()
handshake_client.go#L281: c.config.ClientSessionCache.Put(cacheKey, nil)
handshake_client.go#L296: _, err = io.ReadFull(c.config.rand(), hello.random)
handshake_client.go#L345: maxVers := c.config.maxSupportedVersion(roleClient)
handshake_client.go#L381: if c.config.SessionTicketsDisabled || c.config.ClientSessionCache == nil {
handshake_client.go#L409: cs, ok := c.config.ClientSessionCache.Get(cacheKey)
handshake_client.go#L430: if c.config.time().After(session.peerCertificates[0].NotAfter) {
handshake_client.go#L432: c.config.ClientSessionCache.Put(cacheKey, nil)
handshake_client.go#L435: if !c.config.InsecureSkipVerify {
handshake_client.go#L440: if err := session.peerCertificates[0].VerifyHostname(c.config.ServerName); err != nil {
handshake_client.go#L457: if c.config.time().After(time.Unix(int64(session.useBy), 0)) {
handshake_client.go#L458: c.config.ClientSessionCache.Put(cacheKey, nil)
handshake_client.go#L498: ticketAge := c.config.time().Sub(time.Unix(int64(session.createdAt), 0))
handshake_client.go#L523: vers, ok := c.config.mutualVersion(roleClient, []uint16{peerVersion})
handshake_client.go#L553: if isResume || (len(c.config.Certificates) == 0 && c.config.GetClientCertificate == nil) {
handshake_client.go#L580: if c.config.VerifyConnection != nil {
handshake_client.go#L581: if err := c.config.VerifyConnection(c.connectionStateLocked()); err != nil {
handshake_client.go#L629: if hs.c.config.CipherSuites == nil && !needFIPS() && rsaKexCiphers[hs.suite.id] {
handshake_client.go#L633: if hs.c.config.CipherSuites == nil && !needFIPS() && tdesCiphers[hs.suite.id] {
handshake_client.go#L705: err = keyAgreement.processServerKeyExchange(c.config, hs.hello, hs.serverHello, c.peerCertificates[0], skx)
handshake_client.go#L755: preMasterSecret, ckx, err := keyAgreement.generateClientKeyExchange(c.config, hs.hello, c.peerCertificates[0])
handshake_client.go#L774: if err := c.config.writeKeyLog(keyLogLabelTLS12, hs.hello.random, hs.masterSecret); err != nil {
handshake_client.go#L815: certVerify.signature, err = key.Sign(c.config.rand(), signed, signOpts)
handshake_client.go#L1031: c.config.ClientSessionCache.Put(cacheKey, cs)
handshake_client.go#L1091: echRejected := c.config.EncryptedClientHelloConfigList != nil && !c.echAccepted
handshake_client.go#L1093: if c.config.EncryptedClientHelloRejectionVerify != nil {
handshake_client.go#L1094: if err := c.config.EncryptedClientHelloRejectionVerify(c.connectionStateLocked()); err != nil {
handshake_client.go#L1100: Roots: c.config.RootCAs,
handshake_client.go#L1101: CurrentTime: c.config.time(),
handshake_client.go#L1116: } else if !c.config.InsecureSkipVerify {
handshake_client.go#L1118: Roots: c.config.RootCAs,
handshake_client.go#L1119: CurrentTime: c.config.time(),
handshake_client.go#L1120: DNSName: c.config.ServerName,
handshake_client.go#L1146: if c.config.VerifyPeerCertificate != nil && !echRejected {
handshake_client.go#L1147: if err := c.config.VerifyPeerCertificate(certificates, c.verifiedChains); err != nil {
handshake_client.go#L1153: if c.config.VerifyConnection != nil && !echRejected {
handshake_client.go#L1154: if err := c.config.VerifyConnection(c.connectionStateLocked()); err != nil {
handshake_client.go#L1230: if c.config.GetClientCertificate != nil {
handshake_client.go#L1231: return c.config.GetClientCertificate(cri)
handshake_client.go#L1234: for _, chain := range c.config.Certificates {
handshake_client.go#L1248: if len(c.config.ServerName) > 0 {
handshake_client.go#L1249: return c.config.ServerName
handshake_client_tls13.go#L104: c.serverName = c.config.ServerName
handshake_client_tls13.go#L281: c.serverName = c.config.ServerName
handshake_client_tls13.go#L337: key, err := generateECDHEKey(c.config.rand(), curveID)
handshake_client_tls13.go#L353: ticketAge := c.config.time().Sub(time.Unix(int64(hs.session.createdAt), 0))
handshake_client_tls13.go#L539: err = c.config.writeKeyLog(keyLogLabelClientHandshake, hs.hello.random, clientSecret)
handshake_client_tls13.go#L544: err = c.config.writeKeyLog(keyLogLabelServerHandshake, hs.hello.random, serverSecret)
handshake_client_tls13.go#L628: if c.config.VerifyConnection != nil {
handshake_client_tls13.go#L629: if err := c.config.VerifyConnection(c.connectionStateLocked()); err != nil {
handshake_client_tls13.go#L745: err = c.config.writeKeyLog(keyLogLabelClientTraffic, hs.hello.random, hs.trafficSecret)
handshake_client_tls13.go#L750: err = c.config.writeKeyLog(keyLogLabelServerTraffic, hs.hello.random, serverSecret)
handshake_client_tls13.go#L821: sig, err := cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_client_tls13.go#L848: if !c.config.SessionTicketsDisabled && c.config.ClientSessionCache != nil {
handshake_client_tls13.go#L869: if c.config.SessionTicketsDisabled || c.config.ClientSessionCache == nil {
handshake_client_tls13.go#L899: session.useBy = uint64(c.config.time().Add(lifetime).Unix())
handshake_client_tls13.go#L909: c.config.ClientSessionCache.Put(cacheKey, cs)
handshake_server.go#L147: originalConfig := c.config
handshake_server.go#L148: if c.config.GetConfigForClient != nil {
handshake_server.go#L150: if configForClient, err = c.config.GetConfigForClient(chi); err != nil {
handshake_server.go#L154: c.config = configForClient
handshake_server.go#L163: c.vers, ok = c.config.mutualVersion(roleServer, clientVersions)
handshake_server.go#L172: if c.config.MinVersion == 0 && c.vers < VersionTLS12 {
handshake_server.go#L203: maxVers := c.config.maxSupportedVersion(roleServer)
handshake_server.go#L212: _, err := io.ReadFull(c.config.rand(), serverRandom)
handshake_server.go#L230: selectedProto, err := negotiateALPN(c.config.NextProtos, hs.clientHello.alpnProtocols, false)
handshake_server.go#L238: hs.cert, err = c.config.getCertificate(clientHelloInfo(hs.ctx, c, hs.clientHello))
handshake_server.go#L251: hs.ecdheOk = supportsECDHE(c.config, c.vers, hs.clientHello.supportedCurves, hs.clientHello.supportedPoints)
handshake_server.go#L357: configCipherSuites := c.config.cipherSuites()
handshake_server.go#L375: if c.config.CipherSuites == nil && !needFIPS() && rsaKexCiphers[hs.suite.id] {
handshake_server.go#L379: if c.config.CipherSuites == nil && !needFIPS() && tdesCiphers[hs.suite.id] {
handshake_server.go#L387: if hs.clientHello.vers < c.config.maxSupportedVersion(roleServer) {
handshake_server.go#L423: if c.config.SessionTicketsDisabled {
handshake_server.go#L428: if c.config.UnwrapSession != nil {
handshake_server.go#L429: ss, err := c.config.UnwrapSession(hs.clientHello.sessionTicket, c.connectionStateLocked())
handshake_server.go#L438: plaintext := c.config.decryptTicket(hs.clientHello.sessionTicket, c.ticketKeys)
handshake_server.go#L453: if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
handshake_server.go#L476: c.config.cipherSuites(), hs.cipherSuiteOk)
handshake_server.go#L482: needClientCerts := requiresClientCert(c.config.ClientAuth)
handshake_server.go#L486: if sessionHasClientCerts && c.config.ClientAuth == NoClientCert {
handshake_server.go#L489: if sessionHasClientCerts && c.config.time().After(sessionState.peerCertificates[0].NotAfter) {
handshake_server.go#L492: if sessionHasClientCerts && c.config.ClientAuth >= VerifyClientCertIfGiven &&
handshake_server.go#L539: if c.config.VerifyConnection != nil {
handshake_server.go#L540: if err := c.config.VerifyConnection(c.connectionStateLocked()); err != nil {
handshake_server.go#L558: hs.hello.ticketSupported = hs.clientHello.ticketSupported && !c.config.SessionTicketsDisabled
handshake_server.go#L562: if c.config.ClientAuth == NoClientCert {
handshake_server.go#L589: skx, err := keyAgreement.generateServerKeyExchange(c.config, hs.cert, hs.clientHello, hs.hello)
handshake_server.go#L604: if c.config.ClientAuth >= RequestClientCert {
handshake_server.go#L621: if c.config.ClientCAs != nil {
handshake_server.go#L622: certReq.certificateAuthorities = c.config.ClientCAs.Subjects()
handshake_server.go#L647: if c.config.ClientAuth >= RequestClientCert {
handshake_server.go#L668: if c.config.VerifyConnection != nil {
handshake_server.go#L669: if err := c.config.VerifyConnection(c.connectionStateLocked()); err != nil {
handshake_server.go#L682: preMasterSecret, err := keyAgreement.processClientKeyExchange(c.config, hs.cert, ckx, c.vers)
handshake_server.go#L695: if err := c.config.writeKeyLog(keyLogLabelTLS12, hs.clientHello.random, hs.masterSecret); err != nil {
handshake_server.go#L830: if c.config.WrapSession != nil {
handshake_server.go#L832: m.ticket, err = c.config.WrapSession(c.connectionStateLocked(), state)
handshake_server.go#L841: m.ticket, err = c.config.encryptTicket(stateBytes, c.ticketKeys)
handshake_server.go#L892: if len(certs) == 0 && requiresClientCert(c.config.ClientAuth) {
handshake_server.go#L901: if c.config.ClientAuth >= VerifyClientCertIfGiven && len(certs) > 0 {
handshake_server.go#L903: Roots: c.config.ClientCAs,
handshake_server.go#L904: CurrentTime: c.config.time(),
handshake_server.go#L942: if c.config.VerifyPeerCertificate != nil {
handshake_server.go#L943: if err := c.config.VerifyPeerCertificate(certificates, c.verifiedChains); err != nil {
handshake_server.go#L967: config: c.config,
handshake_server_tls13.go#L120: if c.vers < c.config.maxSupportedVersion(roleServer) {
handshake_server_tls13.go#L135: if _, err := io.ReadFull(c.config.rand(), hs.hello.random); err != nil {
handshake_server_tls13.go#L186: preferredGroups := c.config.curvePreferences(c.vers)
handshake_server_tls13.go#L236: key, err := generateECDHEKey(c.config.rand(), ecdhGroup)
handshake_server_tls13.go#L262: selectedProto, err := negotiateALPN(c.config.NextProtos, hs.clientHello.alpnProtocols, c.quic != nil)
handshake_server_tls13.go#L297: if c.config.SessionTicketsDisabled {
handshake_server_tls13.go#L326: if c.config.UnwrapSession != nil {
handshake_server_tls13.go#L328: sessionState, err = c.config.UnwrapSession(identity.label, c.connectionStateLocked())
handshake_server_tls13.go#L336: plaintext := c.config.decryptTicket(identity.label, c.ticketKeys)
handshake_server_tls13.go#L352: if c.config.time().Sub(createdAt) > maxSessionTicketLifetime {
handshake_server_tls13.go#L365: needClientCerts := requiresClientCert(c.config.ClientAuth)
handshake_server_tls13.go#L369: if sessionHasClientCerts && c.config.ClientAuth == NoClientCert {
handshake_server_tls13.go#L372: if sessionHasClientCerts && c.config.time().After(sessionState.peerCertificates[0].NotAfter) {
handshake_server_tls13.go#L375: if sessionHasClientCerts && c.config.ClientAuth >= VerifyClientCertIfGiven &&
handshake_server_tls13.go#L475: certificate, err := c.config.getCertificate(clientHelloInfo(hs.ctx, c, hs.clientHello))
handshake_server_tls13.go#L673: err := c.config.writeKeyLog(keyLogLabelClientHandshake, hs.clientHello.random, clientSecret)
handshake_server_tls13.go#L678: err = c.config.writeKeyLog(keyLogLabelServerHandshake, hs.clientHello.random, serverSecret)
handshake_server_tls13.go#L704: return hs.c.config.ClientAuth >= RequestClientCert && !hs.usingPSK
handshake_server_tls13.go#L721: if c.config.ClientCAs != nil {
handshake_server_tls13.go#L722: certReq.certificateAuthorities = c.config.ClientCAs.Subjects()
handshake_server_tls13.go#L754: sig, err := hs.cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_server_tls13.go#L804: err := c.config.writeKeyLog(keyLogLabelClientTraffic, hs.clientHello.random, hs.trafficSecret)
handshake_server_tls13.go#L809: err = c.config.writeKeyLog(keyLogLabelServerTraffic, hs.clientHello.random, serverSecret)
handshake_server_tls13.go#L830: if hs.c.config.SessionTicketsDisabled {
handshake_server_tls13.go#L884: if c.config.WrapSession != nil {
handshake_server_tls13.go#L886: m.label, err = c.config.WrapSession(c.connectionStateLocked(), state)
handshake_server_tls13.go#L896: m.label, err = c.config.encryptTicket(stateBytes, c.ticketKeys)
handshake_server_tls13.go#L907: if _, err := c.config.rand().Read(ageAdd); err != nil {
handshake_server_tls13.go#L930: if c.config.VerifyConnection != nil {
handshake_server_tls13.go#L931: if err := c.config.VerifyConnection(c.connectionStateLocked()); err != nil {
handshake_server_tls13.go#L957: if c.config.VerifyConnection != nil {
handshake_server_tls13.go#L958: if err := c.config.VerifyConnection(c.connectionStateLocked()); err != nil {
quic.go#L208: if q.conn.config.MinVersion < VersionTLS13 {
quic.go#L332: c.config.ClientSessionCache.Put(cacheKey, cs)
ticket.go#L297: createdAt: uint64(c.config.time().Unix()),
tls.go#L38: config: config,
tls.go#L51: config: config,
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |